<extend name="Public/layout"/>
<block name="head">
  <link rel="stylesheet" href="__PUBLIC__css/deep-comment.css">
<script src="__PUBLIC__js/circle.js"></script>
<script src="__PUBLIC__js/jquery.nicescroll.min.js"></script>
<script src="__PUBLIC__assets/ckplayer/ckplayer.js"></script>
<style type="text/css">
.footer{
  display: none;
}
</style>
</block>
    
   <block name="main">
    <div class="deep-container">
      <div class="deep-title">
        <div class="deep-one">
          <div class="one-title">
            <h4>请选择您对平台的评价</h4>
          </div>
          <a class="one-have">
            <p>您已选择

             <switch name="colligate" >
              <case value="1" break="1">放心投</case>
              <case value="2"> 可以投</case>
              <case value="3">谨慎投 </case>
              <case value="4">不要投 </case
                ></switch>，点击更改 > 

           </p>
          </a>
        </div>
      </div>
      <div class="platform-comment clearfix">
        <div class="platform-title clearfix">
          <div class="title-left">
            <h4>对平台测评</h4>
          </div>
          <div class="title-right">
            <p class="term-ex">名词解释</p>
            <p class="evaluation-notes">测评须知</p>
          </div>
        </div>
        <div class="palt-two">
          <div class="plat-title">
            <h4>平台实力</h4>
          </div>
          <div class="plat">
            <ul class="plat-comment clearfix">
              <li>
                <div>
                  <p>实缴资金：{$info.funds}</p>
                </div>
              </li>
              <li>
                <div>
                  <p>平台背景：{$info.background}</p>
                </div>
              </li>
              <li>
                <div>
                  <p>运营时间：{$info.operation_data}</p>
                </div>
              </li>
            </ul>
          </div>
          <div class="item-right">
            <p class="stray-parameter">补充参数</p>
            <p class="error-infor">纠错信息</p>
          </div>
          <div class="short-comment" id="wordCounta">
            <textarea class="comment-textarea" id="strength" cols="5" type="text" maxlength="500" placeholder="您已实名认证，请根据您的情况作出实际评价，不造谣，不夸大。一旦发现评论出现恶意造谣等虚假信息，将对评论本人进行曝光，封号处理，如有违法，将提交公安机关处理。" >{$r.strength}<if condition="$edit eq 1">{$depth_info.strength}</if></textarea>
            <span class="wordWrap">
            <var class="word">500</var>/ 500
            </span>
          </div>
        </div>
        <div class="plat-submit">
          <!-- <div class="write"><p>编辑</p></div> -->
		   <empty name="Think.get.edit">
          <div class="tem-storage" onclick="temporary(1)"><p>暂存</p></div>
		  </empty>
        </div>
      </div>
      <div class="process-con clearfix">
        <div class="plat-title">
          <h4>合规进程</h4>
        </div>
        <div class="process">
          <ul class="process-comment clearfix">
            <li>
              <div>
                <p>银行存管：{$info.bank}</p>
              </div>
            </li>
            <li>
              <div>
                <p>地方金融局备案:{$info.city_record}</p>
              </div>
            </li>
            <li>
              <div>
                <p>互金专属ICP经营许可证：{$info.icp_permit}</p>
              </div>
            </li>
            <!--  <li>
              <div>
                <p>ICP备案：{$info.icp_record}</p>
              </div>
            </li>-->
              <li>
              <div>
                <p>设立信披专栏：{$info.disclosure_column}</p>
              </div>
            </li>
              <li>
              <div>
                <p>第三方电子数据存证：{$info.data_storage}</p>
              </div>
            </li>
              <li>
              <div>
                <p>违反限额规定：{$info.limit_regulation}</p>
              </div>
            </li>
             <li>
              <div>
                <p>加入互金协会：{$info.association}</p>
              </div>
            </li>
              <li>
              <div>
                <p>违规开展类资产证券化业务：{$info.asset_securities}</p>
              </div>
            </li>
              <li>
              <div>
                <p>单一融资项目设置募集期：{$info.recruitment_period}</p>
              </div>
            </li>
             

          </ul>
        </div>
        <div class="item-right">
          <p class="stray-parameter">补充参数</p>
          <p class="error-infor">纠错信息</p>
        </div>
        <div class="short-comment" id="wordCounta">
          <textarea class="comment-textarea" id="comp" cols="5" type="text" maxlength="500" placeholder="您已实名认证，请根据您的情况作出实际评价，不造谣，不夸大。一旦发现评论出现恶意造谣等虚假信息，将对评论本人进行曝光，封号处理，如有违法，将提交公安机关处理。" >{$r.comp}<if condition="$edit eq 1">{$depth_info.comp}</if></textarea>
          <span class="wordWrap">
          <var class="word">500</var>/ 500
          </span>
        </div>
        <div class="plat-submit">
          <!-- <div class="write"><p>编辑</p></div> -->
		  <empty name="Think.get.edit">
          <div class="tem-storage" onclick="temporary(2)"><p>暂存</p></div>
		  </empty>
        </div>
      </div>
      <div class="operate-con clearfix">
        <div class="plat-title">
          <h4>运营能力</h4>
        </div>
        <div class="operate">
          <ul class="operate-comment clearfix">
            <li>
              <div>
                <p>成交量:{$info.volume}</p>
              </div>
            </li>
            <li>
              <div>
                <p>偿兑压力:{$info.repay_pressure}</p>
              </div>
            </li>
            <li>
              <div>
                <p>逾期率:{$info.overdue_rate}</p>
              </div>
            </li>
             <li>
              <div>
                <p>借款集中度:{$info.loan_focus}</p>
              </div>
            </li>
             <li>
              <div>
                <p>投资集中度:{$info.investment_focus}</p>
              </div>
            </li>
             <li>
              <div>
                <p>提现速度:{$info.cash_speed}</p>
              </div>
            </li>
             <li>
              <div>
                <p>有无转让功能:{$info.attorn}</p>
              </div>
            </li>
             <li>
              <div>
                <p>平均借款期限:{$info.average_term}</p>
              </div>
            </li>
             <li>
              <div>
                <p>盈利能力:{$info.profitability}</p>
              </div>
            </li>

          </ul>
        </div>
        <div class="item-right">
          <p class="stray-parameter">补充参数</p>
          <p class="error-infor">纠错信息</p>
        </div>
        <div class="short-comment" id="wordCounta">
          <textarea class="comment-textarea" id="operate" cols="5" type="text" maxlength="500" placeholder="您已实名认证，请根据您的情况作出实际评价，不造谣，不夸大。一旦发现评论出现恶意造谣等虚假信息，将对评论本人进行曝光，封号处理，如有违法，将提交公安机关处理。" >{$r.operate}<if condition="$edit eq 1">{$depth_info.operate}</if></textarea>
          <span class="wordWrap">
          <var class="word">500</var>/ 500
          </span>
        </div>
        <div class="plat-submit">
          <!-- <div class="write"><p>编辑</p></div> -->
		   <empty name="Think.get.edit">
          <div class="tem-storage" onclick="temporary(3)"><p>暂存</p></div>
		  </empty>
        </div>
      </div>
      <div class="opinion-con clearfix">
        <div class="plat-title">
          <h4>舆情标题</h4>
        </div>
        <div class="opinion">
          <ul class="opinion-comment clearfix">
            <li>
              <div class="same">
                <p>一般负面：{$opinion_count}条</p>
                <ul>
                  <foreach name="platform_opinion" item="v">
                  <li>
                    <p>负面舆情链接：<a href="$v.url}">{$v.url}</a></p>
                    <p>{$v.opinion_title}</p>
                  </li>
                  </foreach>
                </ul>
              </div>
            </li>
            <li>
              <div class="major">
                <p>重大负面：{$info.major_attorn}</p>
              </div>
            </li>
            <li>
              <div class="serious">
                <p>严重负面：{$info.serious_attorn}</p>
              </div>
            </li>
          </ul>
        </div>
        <div class="item-right">
          <p class="error-infor">纠错信息</p>
        </div>
        <div class="short-comment" id="wordCounta">
          <textarea class="comment-textarea" cols="5" id="public_opinion" type="text" maxlength="200" placeholder="您已实名认证，请根据您的情况作出实际评价，不造谣，不夸大。一旦发现评论出现恶意造谣等虚假信息，将对评论本人进行曝光，封号处理，如有违法，将提交公安机关处理。" >{$r.public_opinion}<if condition="$edit eq 1">{$depth_info.public_opinion}</if></textarea>
          <span class="wordWrap">
          <var class="word">500</var>/ 500
          </span>
        </div>
        <div class="plat-submit">
          <!-- <div class="write"><p>编辑</p></div> -->
		   <empty name="Think.get.edit">
          <div class="tem-storage" onclick="temporary(4)"><p>暂存</p></div>
		  <empty>
        </div>
      </div>
      <div class="manage-con clearfix">
         <div class="plat-title">
          <h4>管理团队</h4>
        </div>
        <div class="manage clearfix">
          <ul class="manage-comment">
            <foreach name="plat_team" item="v">
              <li class="clearfix">
                <div class="manage-left">
                  <img src="{$v.pic}">
                </div>
                <div class="manage-right">
                  <h4>{$v.name}</h4>
                  <p>{$v.introduce}</p>
                </div>
              </li>
            </foreach>

          </ul>
        </div>
        <div class="item-right">
          <p class="error-infor">纠错信息</p>
        </div>
        <div class="short-comment" id="wordCounta">
          <textarea class="comment-textarea" id="team" cols="5"  type="text" maxlength="500" placeholder="您已实名认证，请根据您的情况作出实际评价，不造谣，不夸大。一旦发现评论出现恶意造谣等虚假信息，将对评论本人进行曝光，封号处理，如有违法，将提交公安机关处理。" >{$r.team}<if condition="$edit eq 1">{$depth_info.team}</if></textarea>
          <span class="wordWrap">
          <var class="word">500</var>/ 500
          </span>
        </div>
        <div class="plat-submit">
          <!-- <div class="write"><p>编辑</p></div> -->
		   <empty name="Think.get.edit">
          <div class="tem-storage" onclick="temporary(5)"><p>暂存</p></div>
		  </empty>
        </div>
      </div>
       <div class="stock-con clearfix">
        <div class="plat-title">
          <h4>股权结构</h4>
        </div>
        <div class="stock">
            <ul class="stock-comment">
              <li>
                 <ul class="stock-item">
                  <foreach name="plat_stock" item="v">
                  <li  class="clearfix">
                    <div class="stock-left">
                      <p>{$v.title}</p>
                    </div>
                    <div class="stock-right">
                      <p>{$v.ratio}</p>
                    </div>
                  </li>
                  </foreach>
                </ul>
              </li>
             
           
            </ul>
             
        </div>
        <div class="item-right">
          <p class="error-infor">纠错信息</p>
        </div>
        <div class="short-comment" id="wordCounta">
          <textarea class="comment-textarea" id="stock" cols="5"  type="text" maxlength="500" placeholder="您已实名认证，请根据您的情况作出实际评价，不造谣，不夸大。一旦发现评论出现恶意造谣等虚假信息，将对评论本人进行曝光，封号处理，如有违法，将提交公安机关处理。" >{$r.stock}<if condition="$edit eq 1">{$depth_info.stock}</if></textarea>
          <span class="wordWrap">
          <var class="word">500</var>/ 500
          </span>
        </div>
        <div class="plat-submit">
          <!-- <div class="write"><p>编辑</p></div> -->
		   <empty name="Think.get.edit">
          <div class="tem-storage" onclick="temporary(6)"><p>暂存</p></div>
		  </empty>
        </div>
      </div>
      <div class="stock-con clearfix">
        <div class="plat-title">
          <h4>资产类型</h4>
        </div>
        <div class="stock">
            <ul class="stock-comment">
              <foreach name='platform_assets' item="v">
              <li>
                 <ul class="stock-item">
                  <li  class="clearfix">
                    <div class="stock-left">
                      <p>标的名称</p>
                    </div>
                    <div class="stock-right">
                      <p>{$v.object}</p>
                    </div>
                  </li>
                  <li class="clearfix">
                    <div class="stock-left intro-left">
                      <p>资产介绍</p>
                    </div>
                    <div class="stock-right">
                      <p>{$v.assets}</p>
                    </div>
                  </li>
                </ul>
              </li>
              </foreach>
             
                </ul>
              </li>
            </ul>
             
        </div>
        <div class="item-right">
          <p class="error-infor">纠错信息</p>
        </div>
        <div class="short-comment" id="wordCounta">
          <textarea class="comment-textarea" id="assets" cols="5" type="text" maxlength="500" placeholder="您已实名认证，请根据您的情况作出实际评价，不造谣，不夸大。一旦发现评论出现恶意造谣等虚假信息，将对评论本人进行曝光，封号处理，如有违法，将提交公安机关处理。" >{$r.assets}<if condition="$edit eq 1">{$depth_info.assets}</if></textarea>
          <span class="wordWrap">
          <var class="word">500</var>/ 500
          </span>
        </div>
        <div class="plat-submit">
          <!-- <div class="write"><p>编辑</p></div> -->
		   <empty name="Think.get.edit">
          <div class="tem-storage" onclick="temporary(7)"><p>暂存</p></div>
		  </empty>
        </div>
      </div>
      <div class="risk-con clearfix">
        <div class="plat-title">
          <h4>风控<span>( 选填 )</span></h4>
          <div class="ex-select"></div>
        </div>
        <div class="risk-tag">
          <div class="risk">
            <p>请您对平台的风控模式，以及风控实力做出简单评价。</p>
          </div>
          <div class="short-comment" id="wordCounta">
            <textarea class="comment-textarea" id="control" cols="5" type="text" maxlength="200" placeholder="您已实名认证，请根据您的情况作出实际评价，不造谣，不夸大。一旦发现评论出现恶意造谣等虚假信息，将对评论本人进行曝光，封号处理，如有违法，将提交公安机关处理。" >{$r.control}<if condition="$edit eq 1">{$depth_info.control}</if></textarea>
            <span class="wordWrap">
            <var class="word">500</var>/ 500
            </span>
          </div>
          <div class="plat-submit">
            <!-- <div class="write"><p>编辑</p></div> -->
			 <empty name="Think.get.edit">
            <div class="tem-storage" onclick="temporary(8)"><p>暂存</p></div>
			</empty>
          </div>
        </div>
      </div> 
      <div class="custom-con clearfix">
        <div class="plat-title">
          <h4>客服<span>( 选填 )</span></h4>
          <div class="ex-select"></div>
        </div>
        <div class="custom-item">
          <div class="customer-service">
            <p>请您对平台的风控模式，以及风控实力做出简单评价。</p>
          </div>
          <div class="short-comment" id="wordCounta">
            <textarea class="comment-textarea" cols="5" id="service" type="text" maxlength="200" placeholder="您已实名认证，请根据您的情况作出实际评价，不造谣，不夸大。一旦发现评论出现恶意造谣等虚假信息，将对评论本人进行曝光，封号处理，如有违法，将提交公安机关处理。" >{$r.service}<if condition="$edit eq 1">{$depth_info.service}</if></textarea>
            <span class="wordWrap">
            <var class="word">500</var>/ 500
            </span>
          </div>
          <div class="plat-submit">
            <!-- <div class="write"><p>编辑</p></div> -->
			 <empty name="Think.get.edit">
            <div class="tem-storage" onclick="temporary(9)"><p>暂存</p></div>
			</empty>
          </div>
        </div>
      </div> 
      <div class="exercise-con clearfix">
        <div class="plat-title">
          <h4>活动<span>( 选填 )</span></h4>
          <div class="ex-select"></div>
        </div>
        <div class="exercise-item">
          <div class="exercise">
            <p>请您对平台的风控模式，以及风控实力做出简单评价。</p>
          </div>
          <div class="short-comment" id="wordCounta">
            <textarea class="comment-textarea" cols="5" id="active" type="text" maxlength="500" placeholder="您已实名认证，请根据您的情况作出实际评价，不造谣，不夸大。一旦发现评论出现恶意造谣等虚假信息，将对评论本人进行曝光，封号处理，如有违法，将提交公安机关处理。" >{$r.active}<if condition="$edit eq 1">{$depth_info.active}</if></textarea>
            <span class="wordWrap">
            <var class="word">500</var>/ 500
            </span>
          </div>
          <div class="plat-submit">
            <!-- <div class="write"><p>编辑</p></div> -->
			 <empty name="Think.get.edit">
            <div class="tem-storage" onclick="temporary(10)"><p>暂存</p></div>
			</empty>
          </div>
      </div> 
     </div>
       <div class="submit" onclick="sub()">
        <p>提交</p>
      </div> 
    </div>
    
    <!-- 请选择您对平台的评价弹层 -->
    <div class="popup"  <notempty name="colligate">style="display:none;"</notempty>>
        <div class="popup-com">
          <div class="popup-title">
            <p>请选择您对平台的评价</p>
          </div>
          <div class="popup-con">
            <ul class="clearfix" id="tag">
              <li>
                <div class="unchecked <if condition='$colligate eq 1'> active</if>" attr_id='1'>
                  <p>放心投</p>
                </div>
              </li>
              <li>
                <div class="unchecked <if condition='$colligate eq 2'> active</if>" attr_id='2'>
                  <p>可以投</p>
                </div>
              </li>
              <li>
                <div class="unchecked <if condition='$colligate eq 3'> active</if>" attr_id='3'>
                  <p>谨慎投</p>
                </div>
              </li>
              <li>
                <div class="unchecked <if condition='$colligate eq 4'> active</if>" attr_id='4'>
                  <p>不要投</p>
                </div>
              </li>
            </ul>
             <ul class="clearfix have">
              <li>
                <div class="unchecked <if condition='$is_invest eq 1'> haveactive</if>" attr_id='1'>
                  <p>已投资</p>
                </div>
              </li>
              <li>
                <div class="unchecked <if condition='$is_invest eq 0'> haveactive</if>"   attr_id='0'>
                  <p>未投资</p>
                </div>
              </li>
            </ul>
          </div>
<!--           <div class="popup-check">
            <div class="p-check"  <if condition='$is_invest eq 1'> p-active</if>" <if condition='$is_invest eq 1'>attr_check="1"<else/>attr_check="0"</if> ></div>
            <p>未投资</p>
          </div> -->
          <div class="popup-submit">
            <p>下一步</p>
          </div>
        </div>
    </div>

    <!-- 名词解释弹窗 -->
    <div class="term-popup">
       <div class="term-com">
        <div class="term-title">
          <h4>名词解释</h4>
        </div>
        <div class="term-container">
          <p>实缴资金：平台实际缴资</p>
          <p>平台背景：平台控股方</p>
          <p>国有大银行：国家开发银行、中国进出口银行、中国农业发展银行、中国工商银行、中国农业银行、中国银行、中国建设银行、交通银行
          <p>城商行存管：地方性银行，如江西银行，厦门银行等</p>
          <p>第三方电子数据存证：如电子合同</p>
          <p>互金协会：区分地方性互金协会和中国互金协会</p>
          <p>限额规定：同一自然人在同一平台的借款余额上限不超过20万元，在不同平台借款总余额不超过100万元；同一法人或其他组织在同一平台的借款余额上限不超过100万元，在不同平台借款总余额不超过人民币500万元。”</p>
          <p>类资产证券化业务：平台是否实行P2N模式，是否对接典当行、保理公司、小贷公司
          单一融资项目设置募集期：募集期不得超过20天</p>
          <p>偿兑压力：平台待收/最近一期审计报告净资产</p>
          <p>逾期率：根据平台公布的金额逾期率来判断，未公布，或逾期公布为0的都不计分</p>
          <p>借款集中度：平台前十大借款人待还占比</p>
          <p>投资集中度：平台前十大投资人待收占比</p>
          <p>盈利能力：需平台公布审计报告进行分析</p>
          <p>重大负面舆情：重大负面（可信信源）：逾期、提现困难、自融、自保、资金池</p>
          <p>严重负面舆情：严重负面（可信信源）：经侦介入、跑路、停业</p>
        </div>
        <div class="term-btn">
          <p>知道了</p>
        </div>
      </div>
    </div>
    <!-- 测评须知 -->
    <div class="note-popup">
      <div class="note-com">
        <div class="note-title">
          <h4>测评须知</h4>
        </div>
        <div class="note-container">
          <ul>
            <li>
              <p>1、平台数据为8号金融街收集到的数据情况，投顾可根据该数据情况对平台真实情况进行评价。
              </p>
            </li>
            <li>
              <p>2、投顾所发表观点仅供参考，属个人观点，8号金融街作为第三方，不对投顾发表观点承担任何责任。</p>
            </li>
            <li>
              <p>3、投顾发表观点后，将会呈现在平台圈子观点详情以及投顾个人主页中。</p>
            </li>
          </ul>
        </div>
        <div class="note-btn">
          <p>知道了</p>
        </div>
      </div>
    </div>

</block>
<block name="js">

    <script type="text/javascript">
    // document.addEventListener("touchmove",function(e){
    //       e.preventDefault();
    //       e.stopPropagation();
    //   },false);
    
      function temporary(tag){
        switch(tag)
          {
            case 1:
            var name=$('#strength').val();
            var filed='strength';
            break;
            case 2:
            var name=$('#comp').val();
            var filed='comp';
            break;
           case 3:
            var name=$('#operate').val();
            var filed='operate';
            break;
           case 4:
            var name=$('#public_opinion').val();
            var filed='public_opinion';
            break;
           case 5:
            var name=$('#team').val();
            var filed='team';
            break;
           case 6:
            var name=$('#stock').val();
            var filed='stock';
            break;
           case 7:
            var name=$('#assets').val();
            var filed='assets';
            break;
           case 8:
            var name=$('#control').val();
            var filed='control';
            break;
           case 9:
            var name=$('#service').val();
            var filed='service';
            break;
           case 10:
            var name=$('#active').val();
            var filed='active';
            break;
          }
          var platform_id = "{$_GET['id']}";
          $.post('/Home/Circle/depth',{
              temporary:1,
              name:name,
              filed:filed,
              platform_id:platform_id,
          },function(res){
            layer.open({
              content:res.msg
              ,skin: 'msg'
              ,time: 2 //2秒后自动关闭
            });
          })
        }
      function sub(){
          var strength=$('#strength').val();
          var comp=$('#comp').val();
          var operate=$('#operate').val();
          var public_opinion=$('#public_opinion').val();
          var team=$('#team').val();
          var stock=$('#stock').val();
          var assets=$('#assets').val();
          var control=$('#control').val();
          var service=$('#service').val();
          var active=$('#active').val();
          var platform_id = "{$_GET['id']}";
          if(strength=='' || comp==''  || operate==''  || public_opinion==''  || team==''  || stock==''  || assets=='' ){
              layer.open({
              content: '请把必填项填写完整后提交！'
              ,skin: 'msg'
              ,time: 1 //2秒后自动关闭
            });
              return 
          }
          var edit = "{$edit}"
          if(edit){
            var info_id = "{$_GET['info_id']}"
            var postdata={strength:strength,comp:comp,operate:operate,public_opinion:public_opinion,team:team,stock:stock,assets:assets,control:control,service:service,active:active,temporary:0,platform_id:platform_id,edit:1,info_id:info_id}
          }else{
             var postdata={strength:strength,comp:comp,operate:operate,public_opinion:public_opinion,team:team,stock:stock,assets:assets,control:control,service:service,active:active,temporary:0,platform_id:platform_id}
          }
          
          $.post('/Home/Circle/depth',postdata,function(res){
            if(edit){
                layer.open({
                content:res.msg
                ,skin: 'msg'
                ,time: 2 //2秒后自动关闭
                ,end:function(){history.go(-1)}
              });
            }else{
              layer.open({
                content:res.msg
                ,skin: 'msg'
                ,time: 2 //2秒后自动关闭
                ,end:function(){location.href="/Home/circle/circle_info/id/"+platform_id}
              });
            }
             
          })
            

      }
    // 请选择您对平台的评价弹层
    $(function(){
      var wordCount = $(".short-comment");
      wordCount.each(function(i,v){
        textArea = $(v).find('textarea'),
        word = $(v).find('.word');console.log(textArea )
        statInputNum(textArea,word);
      })    

    function statInputNum(textArea,numItem) {
        var max = numItem.text(),
            curLength;
        textArea[0].setAttribute("maxlength", max);
        curLength = textArea.val().length;
        numItem.text(max - curLength);
        textArea.on('input propertychange', function () {
            var _value = $(this).val().replace(/\n/gi,"");
            numItem.text(max - _value.length);
        });
    }

      if ($('.popup').css('display') =='block') {
        $('body').height($(window).height());
      $('body').css('overflow','hidden');
      $("html,body").animate({scrollTop:0},500);
      };
    })


    $('.one-have').click(function() {
      $('body').height($(window).height());
      $('body').css('overflow','hidden');
          $('.popup').css('display','block');
      document.addEventListener("touchmove",function(e){
          e.preventDefault();
          e.stopPropagation();
      },false);    
        });
    $('.popup-submit').click(function() {

      var  text ='',temp = 0;
          $('#tag > li > div').each(function(index, v) {
            if($(v).hasClass('active')){
              temp +=1;
            }
            $('.one-have > p')[0].innerHTML = '您已选择'+text+'，点击更改 >';
          });
          if(temp>1){
            layer.open({
              content: '最多只能选择一个评价！'
              ,skin: 'msg'
              ,time: 2 //2秒后自动关闭
            });
          }else if(temp==0){
             layer.open({
              content: '必须要选择一个评价！'
              ,skin: 'msg'
              ,time: 2 //2秒后自动关闭
            });
          }else{
            //提交综合评价
            var colligate = $('#tag > li > .active').attr('attr_id');
            var platform_id = '{$_GET["id"]}';
             var is_invest = $('.have > li > .haveactive').attr('attr_id');
            $.post('/Home/circle/grade',{
                platform_id:platform_id,
                colligate:colligate,
                is_invest:is_invest
            },function(res){
                  if(res.err!=0){
                         layer.open({
                            content:"您未改变评价！"
                            ,skin: 'msg'
                            ,time: 2 //2秒后自动关闭
                          });
                        
                  }
                      $('.popup').css('display','none');
                      $('body').css('overflow','');

                      $('#tag > li > div').each(function(index, v) {
                          if($(v).hasClass('active')){
                              text += $(v).children('0').prevObject["0"].innerText;
                          }
                          $('.one-have > p')[0].innerHTML = '您已选择'+text+'，点击更改 >';
                      });
                      document.addEventListener("touchmove",function(e){
                           e.returnValue = true;
                      },false);
            })
        }
    });
    // 点击评价
        $('#tag > li > div').each(function(index, v) {
        $(v).click(function(){
            $('#tag > li > div').removeClass('active');
            $(v).addClass('active');
        });
      });
        $('.have > li > div').each(function(index, v) {
            $(v).click(function(){
              $('.have > li > div').each(function(index, v){
                $(v).removeClass('haveactive')
              });
              $(v).addClass('haveactive');
            });
          });
      // 是否已投资
        $('.p-check').click(function() {
          if ($('.p-check').hasClass('p-active')) {
            $('.p-check').removeClass('p-active');
            $('.p-check').attr('attr_check','0');
            $('.p-check~p').html('未投资');
          }else{
            $('.p-check').addClass('p-active');
            $('.p-check').attr('attr_check','1');
            $('.p-check~p').html('已投资');
          };
        });

    //名词解释弹窗
    $('.term-ex').click(function(){
      $('body').height($(window).height());
      $('body').css('overflow','hidden');

      $('.term-popup').css('display','block');//超出滚动
      $('#ascrail2000').css('display','block');
       $('.term-container').niceScroll({
          cursorcolor: "#ccc",//#CC0071 光标颜色
          cursoropacitymax: 1, //改变不透明度非常光标处于活动状态（scrollabar“可见”状态），范围从1到0
          touchbehavior: false, //使光标拖动滚动像在台式电脑触摸设备
          cursorwidth: "5px", //像素光标的宽度
          cursorborder: "0", // 游标边框css定义
          cursorborderradius: "5px",//以像素为光标边界半径
          autohidemode: false //是否隐藏滚动条
      });
       document.addEventListener("touchmove",function(e){
          e.preventDefault();
          e.stopPropagation();
      },false);
    });
    $('.term-btn').click(function(){
      $('.term-popup').css('display','none');
      $('#ascrail2000').css('display','none');
      $('body').css('overflow','');
      document.addEventListener("touchmove",function(e){
           e.returnValue = true;
      },false);
    });

    // 测评须知弹窗
    $('.evaluation-notes').click(function() {
      $('.note-popup').css('display','block');
      $('body').height($(window).height());
      $('body').css('overflow','hidden');
      document.addEventListener("touchmove",function(e){
          e.preventDefault();
          e.stopPropagation();
      },false);
    });
    $('.note-btn').click(function(){
      $('.note-popup').css('display','none');
      $('body').css('overflow','');
      document.addEventListener("touchmove",function(e){
           e.returnValue = true;
      },false);
    });

    // 补充参数
    $('.stray-parameter').click(function(){
    var tempStray =    ' <div class="stray-title">'
        +  '<h4>补充参数</h4>'
        +'</div>'
        +'<div class="stray-container">'
          +'<textarea class="comment-textarea stray-container-text" id="correction_con_1" cols="5" id="active" type="text" maxlength="500" placeholder="请输入您觉得需要补充的数据格式：平台背景--国资系" ></textarea>'
          +'<p>8号金融街将会尽快审核您提交的信息，并根据实际情况做出调整。</p>'
        +'</div>'
      
    ;

    layer.open({
    content: tempStray
    ,btn: '提交'
    ,yes: function(index){
      var content = $("#correction_con_1").val();
        if(content){
          correction(content,1)
        }else{
          layer.open({
            content: '请输入内容！',
            skin: 'msg'
            ,time: 2 //2秒后自动关闭
          })
        }
       
    }
  });
    })


    // 纠错参数
    $('.error-infor').click(function(){
      var tempError =    ' <div class="stray-title">'
        +  '<h4>纠错信息</h4>'
        +'</div>'
        +'<div class="stray-container">'
          +'<textarea class="comment-textarea stray-container-text" id="correction_con_2" cols="5" id="active" type="text" maxlength="500" placeholder="请输入您觉得错误的数据，并补充正确的数据格式：国资系有误--应为上市系" ></textarea>'
          +'<p>8号金融街将会尽快审核您提交的信息，并根据实际情况做出调整。</p>'
        +'</div>'
      
    ;
        layer.open({
        content: tempError
        ,btn: '提交'
        ,yes: function(index){
          var content = $("#correction_con_2").val();
          if(content){
          correction(content,0)
        }else{
          layer.open({
            content: '请输入内容！',
            skin: 'msg'
            ,time: 2 //2秒后自动关闭
          })
        }
        }
      });
    })
    function correction(content,type){
      layer.closeAll();
      var platform_id = "{$_GET['id']}"
      $.post('/Home/Circle/correction',{
        content:content,
        type:type,
        platform_id:platform_id
      },function(res){
          layer.open({
            content: res.msg
            ,skin: 'msg'
            ,time: 2 //2秒后自动关闭
          });
  
      })
    }
  
  // 活动、客服、风控
  $('.ex-select').click(function(){
    if($(this).hasClass('ex-select-active')){
      $(this).removeClass('ex-select-active');
      $(this).parent('.plat-title').next().css('display','none');
    }else{
      $(this).addClass('ex-select-active');
      $(this).parent('.plat-title').next().css('display','block');
    }
  })
    
    </script>
</block>